package com.chaos.auth.api.feign;

import com.chaos.auth.api.constant.ServerNameConstant;
import com.chaos.auth.api.data.TTenantData;
import com.chaos.framework.model.dto.ID;
import com.chaos.framework.model.dto.result.data.DataResult;
import com.chaos.framework.model.dto.result.list.ListResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 租户能力
 */
@FeignClient(value = ServerNameConstant.AUTH_SERVICE)
public interface TenantFeign {

    @PostMapping("/tTenant/one")
    @ApiOperation(value = "商户表详情", httpMethod = "POST")
    DataResult<TTenantData> one(@RequestBody ID data);
}
